package com.shurdroides.proyectofinal.constants;

import android.os.Message;

public interface Constants {

	public interface Preferences {
		public static final String PREFS_NAME = "mis_preferencias";
		public static final String AUTHENTICATION_TOKEN = "AUTHENTICATION_TOKEN";
		public static final String DEFAULT_AUTHENTICATION_TOKEN = "NO_AUTH";
		public static final String RANKING = "Ranking";
		public static final String ACCOUNT = "Account";
		public static final String NOMBRE_USUARIO = "NombreUsuario";
		public static final String DENTRO = "dentro";
		public static final String CUEVA_LAT = "CuevaLat";
		public static final String CUEVA_LON = "CuevaLon";
		public static final String DEVICE_REGISTRATION = "DeviceRegistration";
		public static final String FIRST_TIME = "FirstTime";
		public static final int RADIO_CUEVA = 1500;
	}

	public interface AppEngine {
		public static final String APP = "http://proyecto-sintesi.appspot.com/";

	}
	
	public interface C2DM{
		public static final String BASE_URL = "http://proyecto-sintesi.appspot.com/";
	}
	
	public interface HandlerInt{
		public static final int SHOW_DIALOG_ELEMENTO=8;
		public static final int SHOW_DIALOG_USUARIO=9;
		public static final int OUT_OF_RANGE=1;
		
		public static final int MI_POS=-1;
		public static final int TEST=-9;
		public static final int ELEMENTO=0;
		public static final int USUARIO=1;
	}
	
	public interface Generacio {
		public static final int INV = 1;
		public static final int CASA = 2;
	}
	
	public interface JSON{
		public static final String MAPA_OBJETOS="mapaObjetos";
		public static final String MAPA_USUARIOS="mapaUsuarios";
		public static final String ID="id";
		public static final String LAT="lat";
		public static final String LON="lon";
		public static final String TIPO="tipo";
		public static final String NOMBRE="nombre";
		public static final String CORREO="correo";
		public static final String TIPO_JSON="TipoJson";
		public static final String RESULTADO="idMensaje";
		public static final String TIPO_MENSAJE="idMensaje";
		
		public interface JSON_TIPO{
			public static final int TIPO_MENSAJE_ACTUALIZAR_POSICION_ELEMENTOS=0;
			public static final int TIPO_MENSAJE_ACTUALIZAR_RANKING=1;
			public static final int TIPO_MENSAJE_COGER_OBJETO=2;
			public static final int TIPO_MENSAJE_ACTUALIZAR_CUEVA=3;
			public static final int TIPO_MENSAJE_CREAR_CUENTA=4;
		}
		
	}
	
	public interface Capas{
		public static final int MAPA_OBJETOS=0;
		public static final int MAPA_USUARIOS=1;
		public static final int MAPA_ANIMALES=2;
	}
	
	public interface Mapa{
		public static final double RADIO =1000;
	}
	
	public interface Database {
		
		public static final String PK = " PRIMARY KEY ";
		public static final String REF = " REFERENCES ";
		public static final String BBDD = "LACOSA.db";
		
		public interface TABLA_OBJETO {
			public static final String TABLE_NAME = "OBJETO";
			public static final String COL_ID = "_id";
			public static final String COL_NAME = "NOMBRE";
			public static final String COL_FOTO = "FOTO";
			public static final String COL_PESO = "PESO";
			public static final String COL_CANTIDAD_CASA = "CANTIDAD_CASA";
			public static final String COL_CANTIDAD_INV = "CANTIDAD_INVENTARIO";
			public static final String COL_DURACION = "DURACION";
			public static final String COL_ALIMENTO = "ALIMENTO";
			public static final String SUM_COL_CANTIDAD = "CANTIDAD";
			public static final String COL_DURACION_ABS = "DURACION_ABSOLUTA";
		}

		public interface TABLA_RECETAS {
			public static final String TABLE_NAME = "RECETAS";
			public static final String COL_ID = "_id";
			public static final String COL_PUNTOS = "PUNTOS";
			public static final String COL_DESCUBIERTO = "DESCUBIERTO";
		}

		public interface TABLA_INGREDIENTES {
			public static final String TABLE_NAME = "INGREDIENTES";
			public static final String COL_ID = "_id";
			public static final String COL_ID_RECETA = "ID_RECETA";
			public static final String COL_ID_OBJETO = "ID_OBJETO";
			public static final String COL_CANTIDAD = "CANTIDAD";

		}
		
		public interface TABLA_RESULTADOS {
			public static final String TABLE_NAME = "RESULTADOS";
			public static final String COL_ID = "_id";
			public static final String COL_ID_RECETA = "ID_RECETA";
			public static final String COL_ID_OBJETO = "ID_OBJETO";
			public static final String COL_CANTIDAD = "CANTIDAD";
		}
		
		public interface TABLA_USUARIO {
			public static final String TABLE_NAME = "USUARIO";
			public static final String COL_ID = "_id"; 
			public static final String COL_NOMBRE = "NOMBRE";
			public static final String COL_LAT = "LATITUD";
			public static final String COL_LONG = "LONGITUD";
			public static final String COL_MAIL = "MAIL";
			public static final String COL_PUNTOS = "PUNTOS";
			public static final String COL_CLASE = "CLASE";
			public static final String COL_FUERZA_MAX = "FUERZA_MAX";
			public static final String COL_RADIO_VISION = "RADIO_VISION";
			public static final String COL_RADIO_ACCION = "RADIO_ACCION";
			public static final String COL_ROBO = "PROBABILIDAD_ROBO";
			public static final String COL_CAZA = "PROBABILIDAD_CAZA";
		}
		
		public interface TABLA_LOGRO {
			public static final String TABLE_NAME = "LOGRO";
			public static final String COL_ID = "_id"; 
			public static final String COL_PARENT_ID = "ID_LOGRO_PADRE";
			public static final String COL_NOMBRE = "NOMBRE";
			public static final String COL_CONDICION = "CONDICION";
			public static final String COL_ADQUIRIDO = "ADQUIRIDO";
			public static final String COL_HABILIDAD = "HABILIDAD";
			
			public static final String CONST_ROBO = "ROBO";
			public static final String CONST_CAZA = "CAZA";
			public static final String CONST_CAMBIO = "CAMBIO";
			public static final String CONST_COMIDA = "COMIDA";
			public static final String CONST_RECOLECTA = "COLECTA";
			public static final String CONST_MEZCLA = "MEZCLA";
		}
	}

}
